<!--
 * @Description: 
 * @Version: 2.0
 * @Autor: gaofang
 * @Date: 2021-03-17 09:01:16
 * @LastEditors: gaofang
 * @LastEditTime: 2021-03-17 10:22:29
-->
<template>
  <a-card>
    <a-modal
      :visible="tipsvisible"
      @ok="handleOk"
      width="70%"
      title="现存数量<申请数量，请重新填写"
    >
    <!-- <p>现存数量<申请数量，请重新填写</p> -->

      <a-table
        style="margin-top: -30px"
        :columns="columns"
        :data-source="tipsDataSource"
      >
      </a-table>
      <a-divider dashed />
    </a-modal>
  </a-card>
</template>
<script>
const columns = [
  {
    title: "序号",
    dataIndex: "key",
    key: "key",
    align: "center",
  },
  {
    title: "仓库编码",
    key: "depotNo",
    dataIndex: "depotNo",
    // width: 280,
    align: "center",
  },
  {
    title: "仓库名称",
    key: "depotName",
    dataIndex: "depotName",
    // width: 280,
    align: "center",
  },
  {
    title: "仓位",
    key: "position",
    dataIndex: "position",
    // width: 280,
    align: "center",
  },
  {
    title: "存货编码",
    key: "inventoryNo",
    dataIndex: "inventoryNo",
    // width: 280,
    align: "center",
  },
   {
    title: "存货名称",
    key: "inventoryName",
    dataIndex: "inventoryName",
    // width: 280,
    align: "center",
  },
   {
    title: "规格型号",
    key: "standardModel",
    dataIndex: "standardModel",
    // width: 280,
    align: "center",
  },
  {
    title: "批次号",
    key: "batchNumber",
    dataIndex: "batchNumber",
    // width: 280,
    align: "center",
  },
   {
    title: "现存数量",
    key: "balance",
    dataIndex: "balance",
    // width: 280,
    align: "center",
  },
   {
    title: "申请数量",
    key: "quantity",
    dataIndex: "quantity",
    // width: 280,
    align: "center",
  },
   {
    title: "批次号",
    key: "batchNumber",
    dataIndex: "batchNumber",
    // width: 280,
    align: "center",
  },
  {
    title: "源单号",
    key: "sourceNumber",
    dataIndex: "sourceNumber",
    // width: 280,
    align: "center",
  },
];
export default {
  props: {
    // 对话框标题
    tipsDataSource: {
      type: Array,
      required: true,
    },
     tipsvisible: {
      type: String,
      required: true,
    },
  },
  data() {
    return {
      columns,
    };
  },
  mounted() {},
  methods: {
      handleOk(){
          this.tipsvisible=false;
      },
       handleCancel(){
          this.tipsvisible=false;
      },
  },
};
</script>
<style></style>
